package me.uniauto.util;

/**
 * Created by hardy on 2018/2/13.
 */
public enum  BusinessDataCode {

    SUCCESS("C100000","操作成功"),
    SERVICE_EXCEPTION("C10001", "服务器异常"),
    ARGS_ERROR("C10003", "非法请求"),
    SWAGGER_CLOSED("C10004", "开发结束，SwaggerUI接口已关闭"),
    NO_DATA("C10005", "暂无数据"),
    FAIL("C10006", "操作失败"),
    USER_NOT_LOGIN("U10001","你还没有登录，请先登录"),
    ;




    private String code;
    private String desc;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    BusinessDataCode(){

    }

    BusinessDataCode(String code,String desc){
        this.setCode(code);
        this.setDesc(desc);
    }

}
